﻿using System;
using System.Text;
using System.Security.Cryptography;

namespace cludg.Services.Security.Utils
{
    internal static class PasswordHash
    {
        public static string Get(string password)
        {
            var hasher = SHA256.Create();
			var hash = hasher.ComputeHash(Encoding.Default.GetBytes(password));
            return Convert.ToBase64String(hash);
        }
    }
}
